
class prog{
    public static void main(String[] args) {
        TreeNode t=new TreeNode('a');
        TreeNode b=new TreeNode('b');
        TreeNode c=new TreeNode('c');
        TreeNode e=new TreeNode('d');
        TreeNode f=new TreeNode('d');
        TreeNode g=new TreeNode('d');
        TreeNode h=new TreeNode('d');
        TreeNode d=new TreeNode('d');
        t.left=b;
        t.right=c;
        c.left=d;
        c.right=e;
        b.left=f;
        b.right=g;
        d.left=h;
//        System.out.println(t.getKsize(2,t));
        t.DLR(t);
    }
}
